Shopglut\enhancements\ProductComparison\ProductComparisonDataManage D

Total Complexity 279
Dependencies 2
Dependents 2
Total lines 1,375
Lines of code 897
Logical lines of code 541
Comment lines 238
Methods 29
Properties 0

Methods 29

Method Rating Maintainability Complexity Lines of code
ajax_render_comparison_table()
C
33 30 85
render_floating_comparison_bar()
B
40 21 56
display_comparison_button_single()
B
40 19 53
shopglut_get_comparison_display_options()
B
36 17 72
render_comparison_button()
B
41 17 50
matches_location()
B
47 18 33
matches_location_with_context()
B
47 18 33
shopglut_render_comparison_preview()
A
38 14 65
localize_comparison_settings()
A
49 16 26
save_productcomparison_layout_data()
A
40 13 61
get_comparison_styles()
A
48 9 38
reset_productcomparison_layout_settings()
A
44 8 46
get_button_inline_styles()
A
49 7 33
ajax_get_comparison_products()
S
50 7 27
should_display_comparison_button()
S
52 7 25
get_active_layout_settings()
S
52 7 25
register_shop_hook()
S
54 7 22
register_archive_hook()
S
54 7 22
register_product_hook()
S
54 7 22
register_position_hooks()
S
55 6 20
sanitize_layout_settings()
S
59 4 15
display_comparison_button_archive()
S
67 4 9
get_setting_value()
S
66 4 9
enqueue_comparison_assets()
S
62 3 12
display_comparison_button_shop()
S
67 3 9
register_comparison_hooks()
S
72 2 6
get_instance()
S
70 2 7
__construct()
S
62 1 11
init_comparison_display()
S
72 1 5